<template>
	<view class="info">
		<web-view src="http://localhost:8848/zhinenggui/static/v.html"></web-view>
		<!-- <iframe
		  src="https://open.ys7.com/ezopen/h5/iframe_se?url=ezopen://ZQRWKA@open.ys7.com/E95470902/1.rec&autoplay=0&audio=1&accessToken=at.86uttxji4ot5fi5l4yni286w9d77wo20-3nq4ffz69d-0uxcmwc-jy8ccp50q&begin=20210130000000&end=20210130235959&templete=2"
		  width="100%"
		  height="581"
		  id="ysopen"
		  allowfullscreen
		  ref="video"
		  style="border:none"
		>
		</iframe> -->
	</view>
</template>
<script>
	let wv;
	export default {
		created() {
			// #ifdef APP-PLUS
			var currentWebview = this.$mp.page.$getAppWebview()
			setTimeout(function() {
			    wv = currentWebview.children()[0]
			    wv.setStyle({top:93,height:581,width:1397,left:18,borderRadius:10 })
			}, 1000); //如果是页面初始化调用时，需要延时一下
			// #endif
		},
		mounted() {
			
			// console.log(this.$refs['video'],111111);
			// /* 获取播放器元素 */
			// let player = this.$refs.video.contentWindow;
			// /* iframe 支持方法 */
			// player.postMessage("play", "https://open.ys7.com/ezopen/h5/iframe") /* 播放 */
			// player.postMessage("stop", "https://open.ys7.com/ezopen/h5/iframe") /* 结束 */
			// player.postMessage("capturePicture", "https://open.ys7.com/ezopen/h5/iframe") /* 截图 */
			// player.postMessage("openSound", "https://open.ys7.com/ezopen/h5/iframe") /* 开启声音 */
			// player.postMessage("closeSound", "https://open.ys7.com/ezopen/h5/iframe") /* 关闭声音 */
			// player.postMessage("startSave", "https://open.ys7.com/ezopen/h5/iframe") /* 开始录制 */
			// player.postMessage("stopSave", "https://open.ys7.com/ezopen/h5/iframe") /* 结束录制 */
		}
	}	
</script>

<style>
.info{
	width: 100%;
	height: 100%;
	box-sizing: border-box;
}
</style>
